Struct type guessing - work in progress