adapted to sim::_loadsim renaming
module resizes in runtime when ports change, port positioning fixed
fixed group resizing