Fix handling of module types in Path.Resolved.identifier