Fix keypath regression

Accept NSArray as a valid JSON Object to fix the regression #257 

/cc @robb