extend IType
Make TmpElement extend IAttr and IRef