add ability to get list of case property references in a form, with tests
cleanup