[BUG] Undo previous commit making append_byte_array too loose.

This commit introduces an alternative way of setting the canonical signature
flag, without compromising the strictness of append_byte_array input
sanitizing.