Fix support for AOT modules with more than 240 assembly dependencies. Fixes #9118.