First steps towards getting the Visitor module implemented.
Changed behaviour of the match library with respect to classes.