Update vector.lua

Changed vector:trim_inplace so it actually trims the vector when it is longer than the maxLen
Merge pull request #32 from stfan/patch-1

Fix vector:trim_inplace()