add __eq__ and __hash__ for scopes
add __eq__ and __hash__ for scopes

This fixes a bug in dedup_scopes/dup_scopes which caused duplicate scopes
to be maintained because they are different
scope instances pointing to  the same data.

google/flax,google/flax