[Debugger] Fixed debugger tooltips for constants and named arguments

Fixes bug #11909 and bug #12229