Added support for objects in JSONP callbacks

http://www.redmine.org/issues/13718#change-58154