Added equals/hashcode methods to internal storage implementation