Bug fixes so that im- and export of hx files now seems to work fine on library modules.