Add `Copy`, `__nonzero__`, doctest to `Regexp`
Support `polymorphic_epk` for query restriction