Util: Add conversion from/to hexadecimal representation
Add marshal-state command-line argument
nstream: optionally specify starting position
Add support for state marshalling