Refactor bh code generation (_bhMatches). Error reporting in beautify.