Allow filter_map_identity when the closure is typed
#12562
Merged
filter_map_identity when the closure is typed
#12562