equals relation for streamkey has been adapted to support subtypes