Implement helpers for parametric types.