fix for incorrect macro
Merge pull request #779 from realm/al-macro-fix

Fix for incorrect macro
Explicitly autorelease realms returned from RLMRealm class methods

Currently whether they are or aren't depends on the whims of ARC, which
means that it's inconsistent as to whether or not the following code
works:

    [[RLMRealm defaultRealm] beginWriteTransaction];
    // ...
    [[RLMRealm defaultRealm] commitWriteTransaction];

Currently this works only in debug modes or if there is anything else
keeping the realm alive, which is rather confusing.
Ensure the write transaction from initializing a realm gets closed

RLMRealmSetSchema throws if a migration is needed but was not provided,
which resulted in the write transaction not being committed until the
realm object was destroyed.
Merge pull request #776 from realm/tg-autorelease-realm

Explicitly autorelease realms returned from RLMRealm class methods
Revert "Merge pull request #770 from realm/al-sort-linkview"

This reverts commit 9821913db0aa9f200016d58efc819ded2a021ef9, reversing
changes made to 29515f773af1019ade8909b7d9a533d6a37a39d8.
Merge pull request #783 from realm/ez-revert-770

Revert "Merge pull request #770 from realm/al-sort-linkview"
Version bump
Don't download the core when a local build is present

There's no particularly pleasant way to set REALM_CORE_VERSION when
building from Xcode, so try to automatically detect that the copy of the
core was built locally and leave it alone if so.
Implement the IN operator for predicates
Add tests for more types of invalid predicates
Add RLMDynamicCast

Returns the object cast to the given type if it's of that type, and `nil`
otherwise. Cuts down on the usage of `id`, consolidates the type check and
downcast used in a bunch of places to avoid accidentally having them not match,
and makes it easier to create variables of the downcasted type.