getAllNodes() and getAllRelationships() considers transaction state (if any)

Fixes #132
Merge pull request #589 from tinwelint/fix-132

getAllNodes() and getAllRelationships() considers transaction state