Fixed bug in RealmObject.equals()

plus updated processor unit tests.

@emanuelez @kneth @bmunkholm