fix a bug where --no-verify doesn't work with signed streams.
Although the assignment of cmd was done only if checked was True, cmd
was used when checked was not True. This produced a stack trace with
UnboundLocalError.
This branch fixes it and introduces tests based on test_signed_data.