Made types of naked objects and arrays configurable.
Added a preprocess function to wrap naked arrays and objects, added phantomjs tests, bumped version.