Override equals and hashCode in Tlv class.

My project will benefit if Tlv has `equals` and `hashCode` overriden so I'm hoping this gets to a Maven release. :)

For reference, the `equals` and `hashCode` methods I've implemented derives from Effective Java 2e by Joshua Bloch (Items 8 and 9).