consistently use RealmObject typealias from Swift