allow objects with arrays to be sent as json in requests

Had a data structure that looked like:

```{'restofworld': ['app', 32]}``` and requests didn't like it.

This fixes, but I am not sure it is correct.
why not just be consistent with http://underscorejs.org/#isArray and http://underscorejs.org/#isObject ?