Fix check_serialise().

Adds to #3.