MDL-38367 course dndupload - deprecate public 'add_type' function, remove non-YUI3 API call to _node