Vector creation perf

This is the PR I sent yesterday, except pushed to develop. It uses Vector/wrap to avoid the double-copy and includes a test that defensive copying takes place.