[CLEANUP] Extbase mvc classes

Add lots of type hints and some checks if the correct class is present.

Resolves: #57812
Releases: 6.3
Change-Id: I6f5e4d30dfbfb73cedf10c0efdbb271ee3bdcecf
Reviewed-on: https://review.typo3.org/29342
Reviewed-by: Oliver Klee
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring