fix: use builtin algebraic instances only when their constants are declared

`grind` also runs in `Init` modules that do not import the modules declaring the builtin instances, where the table returned unknown constants and the stage2 build failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed