Small change to value()

value(p pointer) scaled assumes that the node must be a numeric node and
casts it accordingly.
One small step towards make Nodes work