Fixes #31
Merge pull request #33 from vosen/master

Better bound checks on brace matcher