Prevent incorrect namespace from breaking your REPL

Fixes #849 

Thanks to the Roslyn APIs, this requires reflection to modify an immutable, private field :)
The problem does not appear on Mono due to different namespace handling there, however once Mono error reporting is improved (there is a separate issue for that) we will have to handle that there too.
That's a very interesting blog post and I've definitely learnt something from it, so thanks! I agree that `ToArray()` is the best solution this case.