Made vecmath generic using the new numerics.MathNumeric i wrote.