added incomplete struct support to the get_all_references function