cleanup
handle sparse arrays correctly in nodeToString (#749)