py: Free unique_code slot for outer module.

Partly (very partly!) addresses issue #386.  Most importantly, at the
REPL command line, each invocation does not now lead to increased memory
usage (unless you define a function/lambda).
py: Fix typo printing complex numbers that are purely imaginary.
tests: Remove unimplemented exceptions from testing.