[bugfix] fn:count() reports wrong dependency
[testsuite] Additional tests for fn:count to cover context issues.
Merge pull request #190 from wolfgangmm/develop

[bugfix] fn:count() reports wrong dependency