set correct qname for modules
subtle changes to the equality of ClassType and InstanceType. use object (pointer) equality at the time. need to consider persistence issues later.