A new progress may get you around that first error. The cause is an error resulting from a slave, which does not have "captured" effect, being given the nudity rule. The line "var captured" doesn't provide a initial value, but tries to use that variable for math in an "if" statement regardless.
Line 1682 of expansion.gd should be something like: var captured = 0