PatternLike#compile() should have `&self`

Implementing a method that have `self` parameter on ~str or @str
blows up the compiler.