Allocate special ref entities after MAX_ENTITIES