Fixed attribute type editability when a definition is present