Command.toBytes and Command.fromBytes now works correctly.