Issue #3267785 by darvanen, kriboogh, alexpott, ciprian.stavovei, smustgrave: Deprecate passing non-string parameters to \Drupal\Core\Utility\Token::scan then implement typehint