Fixed a tiny bug in the original ArrayUtil - the function still worked because arrays are lenient
Added VectorUtil, that mirrors the functionality of ArrayUtil for Vector.<T> collections.