Remove signatures from pdu when computing hashes to use for prev pdus, make sure is_state is a boolean.