Support RLMObject and RLMArray predicates comparing on object identity

Also adds more tests and fixes a few issues with our initial support for keypaths.

@jpsim @bmunkholm @kneth 
Oops, can you make that change now? It'd be nice to fix this typo before release.