start writing own library for unpacking, since the upstream one appears broken - gives valgrind failures and occasional corrupt data.  working as of this commit, but doesn't have the arbitrary-object unpacking needed for Command, so several TODOs left there.
add backtracing on unpacking errors