ENH: Use DynamicCastInDebugMod for name input macros

When writing a filter it is possible to mix up inputs and
types. Similar to ImageToImageFilter::GetInput etc., a dynamic_cast
with conversion check should be used in debug mode.

Additionally, casting is not needed to print.

Change-Id: Iacdfcb881670688da79662437cbc57217e5f4fde
Merge topic 'UseDynamicCastInDebugModeForNamedInputMacros'

2a47af6f ENH: Use DynamicCastInDebugMod for name input macros