Fixed TypeError in PrettyConsole for objects.