use Lee's smallvector<> stuff for entity attributes
fix entindexof usage