attempt to rebuild cases JIT during OTA restore

also adds ability to rebuild a nonexistent case as long as there are
relevant forms that touch it

and tests
initial arg fix