Add rector test coverage and misc cleanup
### Problem/Motivation Adds missing unit tests for several rector rules and performs cleanup such as restoring phpstan drupal to rector.php and removing the unused VersionedFunctionToServiceRector class. ### Work items - Commit(s): [cc64db8fe6](https://github.com/palantirnet/drupal-rector/commit/cc64db8fe618), [2303db200c](https://github.com/palantirnet/drupal-rector/commit/2303db200c88), [fb498179b3](https://github.com/palantirnet/drupal-rector/commit/fb498179b3d5), [764aaea266](https://github.com/palantirnet/drupal-rector/commit/764aaea266da) ### Credit - Implemented by: @bbrala --- *Filed retroactively as part of the Drupal 12 rector coverage effort. Closed as fixed; credit to be applied to the contributors listed above.* *AI was used extensively to build this change and to file this issue. See [Dries Buytaert: AI-generated Rector rules for Drupal](https://dri.es/ai-generated-rector-rules-for-drupal) and [Björn Brala: Drupal Rector rules are config, not code. Mostly.](https://www.linkedin.com/pulse/drupal-rector-rules-config-code-mostly-bj%C3%B6rn-brala-vfpwe/).*
issue