Separate out implementation of VectorSet

Fixes an item in #48.