[Debugger] Don't resolve "dynamic" to a type.

Fixes bug #23237