re-implement to-vect as polymorphic function, similar to to-list

this fixes #164