Closure syntax error fix and phpdoc improvements

I've made some improvements to the phpdoc declarations in lightncandy. These should fix some type hinting issues in modern editors.

More importantly, I had a bug where closures were being written to the blockhelpers array with a trailing semicolon, triggering a syntax error: ```array(function () {};)```. This adjustment to the regex corrects that.