Added o.PatternType for creating types that match against a RegExp.