New function setNodeValue(...) to directly set a node's value
instead of incremental update (change). Also updates inner nodes
and prunes. Fixes issue #31.