fast paths for converting persistent vectors to arrays