Forgot to map vec over result of permutations.

In my previous fix I'd applied vec to the result of permutations, which turned the *outer* list to a vector, but didn't change any of the contained collections, all of which remained lists. Mapping vec across the result fixes that.