Depreciated removal of mark_context_dirty and get_context_instance. Adding defaults
Test case work, mostly test_lmb_person_memberships_to_enrolments