Added const versions of ref/deref ops
Entities can now have multiple types