Wrap usages of @ngenerate to improve type inference