refactor: add candidate test to reserved name predicates

This PR changes `registerReservedNamePredicate` to take two functions: a test on the last component of the name, and the predicate itself. This commit only records the new information. A follow-up commit uses it after a stage0 update.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
12 files changed