Fix for JSONObject marshalling. JSONObject with Hibernate user type was being treated as a Domain class.