tests: add test that exposes bug #18
make unused structs tracking handle array of structs, fixes #18