Use map::Pool instead of Pool to avoid errors with g++.
Move ArrayMapQueueEntry to ArrayMap::QueueEntry.