Is pursuing the general idea 'Keep type of reference params?' something you think will be productive?
See https://news-web.php.net/php.internals/109985 for details.