structure: add omitnested support to IsZero and HasZero