Add paren analysis to determine if need to add closing paren

See https://github.com/Hackerpilot/DCD/issues/75#issuecomment-28964235