fix for evidently buggy msvc std::copy, resolves #48