Add test for local-refs being updated by structural-redef

We don't have a good test that local-JNI-refs are correctly updated by
structural redefinition. This adds such a test.

Test: ./test.py --host
Change-Id: I56697fe1a4f9d726b5666c7be2d4036ee248bc58
9 files changed