There is still some discussion about whether this should be backported to 5.0.
I'll create a pull request with a possible fix (this is not very pretty) that will not break existing custom dialects that extend methods for identity support.