Allow expectJSON second parameter to be non-object types

This allows things like:

.expectJSON('somearray.?', 'foo') matches {somearray: ['foo']}