Fixed issue of structural equality and hash in tensor module (__eq__ and __hash__ no longer overridden)