Minor changes to improve console experience

Hi,
I've improved performancein console on object serialization (limiting the level of recursion - devtools incrementally request serialization of remote objects)... and fixed the TypeError problem occuring on global object for enabling autocompletion.

Your project is awesome. I'll hopefully contribute in the near future.

Regards,

Marco