Fix bug introduced with refactor of datatypes
Fix bug introduced with refactor of datatypes

As part of rewriting the datatypes from std::array to std::vector
the std::copy could fail (and crash) if the vector was of
incorrect size.

Change-Id: I05656f57946412dbab1582e40e55ff04448b5002
Reviewed-on: http://review.couchbase.org/60620
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>

daverigby/kv_engine,couchbase/memcached,daverigby/kv_engine,daverigby/memcached,couchbase/memcached,owendCB/memcached,daverigby/memcached,daverigby/kv_engine,owendCB/memcached,daverigby/memcached,daverigby/memcached,owendCB/memcached,couchbase/memcached,couchbase/memcached,daverigby/kv_engine,owendCB/memcached