Grind.nestedProof
This PR fixes the nested proof term detection in `grind`. It must check whether the gadget `Grind.nestedProof` is over-applied. closes #10327