Add Lua helper functions
 vector.apply(v)
 math.sign(x, tolerance)