modified ensure_no_unregistered_superclass to account for unregistered included modules; renamed to ensure_no_unregistered_ancestor