[kotlin] Add internal action for debugging type resolution