Refactored Vector type checking for the vector-based collections.
Added the isVector() method to VectorUtil.