v0.0.x: implement Pattern.prototype.toString