fix(macos): correct NSTextInputClient range and out parameter handling (#21885)