Add a few typed exceptions and override P6Regex::Grammar methods to throw them.

This lets us test sensibly for RT #77380, RT #77522 and similar.
Merge pull request #301 from peschwa/panics_to_typeds

Add a few typed exceptions and override P6Regex::Grammar methods to throw them.