Support for passing compiled regular expressions to is_like, table_like etc.

When printed by the framework (e.g. if a test fails), we print the raw pattern
rather than some random representation of the compiled object.