only add super/ref declaration if  --addUidsAndTypes

fixed bug