bug fix: end-of-defun no longer confused by types containing '}'

fixes #34