replaced std::vector in most places, sort
IsVectorLike changes