[WIP] Make nested braces and brace ranges work

This pull request should resolve editorconfig/editorconfig#81

The main problem is that nested expansion of `*` and other things don't work inside braces.
c code equivalent are_brace_paired.