change test_assign_bad_index_ref reference a soft-deleted case

rather than actually deleted case
Merge branch 'test_assign_bad_index_ref' into explicit_case_processing
move process signals outside transaction

and save xform a second time, only if there are errors