Add Lua helper functions

Functions:
`vector.apply(v, func)`
`math.sign(x, limit)`