Make TreePattern::error use Twine

The underlying error function already uses a Twine,
and most of the uses build up strings.