Fixed VarDumper::dump for objects

Otherwise it throws an exception that "Object of class ClassName
could not be converted to string"