[hdlc_coder] added verify_hdlc_trailer()
I noticed how DCS people are using an inefficient way of checking HDLC message checksums for correctness, so I've added a function that does that efficiently, and at the same time implementing a minor speed improvement in the CRC checksum calculation.