getAllNodes() and getAllRelationships() considers transaction state

Fixes #132