Support subclassing RLMObjects

Does not support polymorphic behavior.

@tgoyne