Fix finding entities by type in model resource.
Groups were being returned when asked to find cells of the type that the group could hold because the masked bit-vectors matched but the unmatched bit-vector was not tested for "extra" entity-type bits.
Backport: release