Rewrite equals() and hashCode() method in NbtTag class.

Signed-off-by: yushijinhun <yushijinhun@gmail.com>