Added visitor for entities

Added since there are a few places where I walked all children. Can also
be applied to grouping operation.

Makes code easier to work with for the most part.