memory store: fix node 0.8 compatibility

fixes #30
closes #31