Added a ConstantDataVisitor

This pattern fits well, considereding the diverse work that is done on the
constants.