Changed behaviour of to_bytes to return an empty byte sequence whenever the submitted value evaluates to False.