Convert std.math.copysign into a template
Fixup use of whitespace in places