Fix for classname method when defining swift relationships

Closes #1225

Cleans up initialization for accessors and static method overrides.

@tgoyne 
for future reference, `realm.transactionWithBlock { () -> Void in` is equivalent to `realm.transactionWithBlock {`