Fixes #39 smart brace close

* this was about as difficult as i thought it would be and somewhat
heuristic-y, so i've created an option to turn it off in case it causes
problems for people