close unneeded file descriptors

Leaving them open may result in hitting ulimits
on some machines.
clean up memory leaks in GtLTRdigestPdomVisitor
remove stray specialchar
Merge pull request #206 from satta/pdom-fixes

Fixes for GtLTRdigestPdomVisitor