use all namespaces not default ones
prevent wrapping ScriptResult in ScriptResult (if command executes code this could happen)
added test
do not print null scriptresult
Merge pull request #741 from filipw/bugfix/replcommandcleanup

Prevent wrapping ScriptResult in ScriptResult in REPL commands