Make returnObjectTrees not mangle arrays, functions, and regexps