properly resolve member fields when looking for existing `@:generic` definitions (closes #3292)