deriving
This PR fixes an issue that caused some `deriving` handlers to fail when the name of the type being declared matched that of a declaration in an open namespace. Closes #9366