languages: simplify loading of language tree data

(integrated from trunk branch change 91d643d by Todd Whiteman <toddw@activestate.com>)