Converted most of vector.lua to e2function syntax.
Optimized extpp.lua a bit.