BUG: Fix EMSegment tests
Created by: jcfr
This commit fixes a regression introduced in r25318 (BUG: Fix vtkMRMLNonlinearTransformNodeTest1), to properly implement the behavior of dynamic_cast, this commit specialized a template function returning the name of the expected transform class name.