matchcompiler.py: Show pattern that caused the InternalError
matchcompiler.py: Check Token::type() before comparing Token::str() against "||" or "|"