swift: fix incorrect override on class methods 

These two class methods are synthesized by mogenerator, so they should only override when hasSuperentity, not when hasCustomSuperentity (which also returns true when a custom base class is specified). 

Fixes #253