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 
Please specify what *is* supported. i.e. I think you could add:

> Only supports direct matches (i.e. `==`).