Issue #3412464 by mstrelan, smustgrave: Fix strict type errors: Convert FormattableMarkup to strings (complex replacement) in core Functional tests