Constant qualified parameter types were not being correctly added to the DebugTypeFunction instruction. Fix #3095.