Add resize to bindings generated by register_vector.

register_vector currently generates push_back, size, get, and set. This
is sufficient for growing vectors, but provides no way to delete
elements and shrink vectors.  This change adds resize, which can be used
to shrink vectors.
Merge pull request #3062 from pwnall/vector_resize

Add resize to bindings generated by register_vector.