enable vector and struct in generational gc

Also refactored test files
and error messages in vector-related
functions.