Optimized visitor function

Visitors that do not wish to have a list of filtered items returned,
should use the visit function instead of select. Removed the performance
hit of creating and returning a list when no result list is needed.