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

Fixes #132