Add interface newtype; move type names into attributes