(next_brace_sub): Return NULL if braces don't match, fix {{a,b},c} globbing, clean up.