Update vector.lua

Changed vector:trim_inplace so it actually trims the vector when it is longer than the maxLen