qapi: add test case for deallocating traversal of incomplete structure