add defense-in-depth error type checks to cmds.
add defense-in-depth error type checks to cmds.

Fix a few categorizations in the unpack command.

Signed-off-by: Eric Myhre <2346ad27d7568ba9896f1b7da6b5991251debdf2@exultant.us>

polydawn/rio,polydawn/rio