Use custom getter name when adding object to Realm

Fixes #699
Merge pull request #701 from apalancat/bug-custom-getters

Use custom getter name when adding object to Realm
Implement -[RLMArray indexOfObjectWhere] and friends
don't hold onto query - fix for query double release
Add a dumb test to verify that holding subqueries past the lifetime of the parent appears to work