improved serialization. now the only thing not wrapped in a gloss
frame is the byte-count which precedes every node.

also added some functions for testing properties of nodes