Fix JAR/JAD files loading multiple times.

Fixes #334
I think the tests are failing because here you're waiting for all the loadingPromises to be resolved, but you're not waiting for the FS promises to be resolved.