[bugfix] Make sure to allow comparisson between memtree and persistent
nodes in ValueSequence