Update __hash__ for other geometry types.