fix issues 10277 & 6045:improve demangling for function local symbols

adjust unittests to changes by https://github.com/D-Programming-Language/druntime/pull/611