Enable SWIG wrapping for vector.hpp

Unfortunately, some parts have to be skipped in the code directly when being parsed by SWIG.