Fixed a bug in Visitor.map that causes node children to be always
visited.