use typeid(T1) == typeid(T2) from <typeinfo> for comparison of types and add debug output.
Summary: fix recurring error T22510 "Invalid ImageAccessor: PixelTypes of Image and ImageAccessor are not equal"
Test Plan: Hands-on tested in MitkWorkbench and MitkDiffusion.
Reviewers: O1 MITK Core!
Maniphest Tasks: T22510
Differential Revision: https://phabricator.mitk.org/D35