Use Intrinsic::ID for the pattern match templates, fixing a signed/unsigned
comparison warning.