Relates to #9380
We automatically insert explicit 'any's where needed. These need to be addressed as in #9100. Fixes #4924