Add capability checks to limit gridcheck to existing entities
Summary
Some gridchecks are run over codimension cd even if the grid G specifies as capabilities that HasEntity<G,cd>::v == false. This MR limits the execution to valid codimensions.