implemented serialization support for imports

support currently very naive
relies purely on module name as unique identifier