Fix for classname method when defining swift relationships

Closes #1225

Cleans up initialization for accessors and static method overrides.

@tgoyne 
Shouldn't the typed versions work now?