ignore `Sys_error` when resolving top level modules (see #3307)
Revert "disabled #3298 test (see #3307)"

This reverts commit cdd1b4d60bb0e09d1189e45d3e8ee87023bb414e.