perf: minimize use of `inferType` at `markNestedSubsingleton` in `grind`

This PR minimizes the number of times `inferType` has to be used in
the `grind` preprocessing step: `markNestedSubsingleton`.
1 file changed