backport exception for invalid JSONKeyPathsByPropertyKey
only allow NSString or NSNull as JSONKeyPathsByPropertyKey value
no need to check if class is NSNull
some more fixes
remove last usage of _JSONKeyPathsByPropertyKey
Merge pull request #349 from Ahti/invalid-json-keypaths-exception

backport exception for invalid JSONKeyPathsByPropertyKey