Add support for int2vector type

We return a list of ints when an int2vector type is encountered. There
isn't a conversion for the other direction (list of ints to int2vector)
because a list of ints already maps to the int array type.