Fix for classname method when defining swift relationships

Closes #1225

Cleans up initialization for accessors and static method overrides.

@tgoyne 
This should still by a dynamic Realm. Changing back.