Updating some math operations in VectorLib that were using

the old allocate, set instead of create result variable and push into
state