- Added code to check that braces are correctly paired when we finish parsing.