fix to 17146

Write string cache entries before module definition when interning strings as required by some IE loader paths. This fix only affects non-layer resources since layer resources appear to be expressed correctly.