Convert to macros, parameterized by element type.