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.
yes, so are functions ;) so why aren't you checking for that too?