Node/edge attribute dict getters, fixes

It's a step towards dealing with #154.