Updated when-traverse so aster.traverse() now supports using custom visitor function.