Currently Generics support is broken in combination with deriveAccessors