Add cram tests

This adds whole-system testing by invoking the `zpm` script. I found a number of bugs with relation to Python and the handling of `str` and `bytes` in that version.