structure: check for nested structs, closes #6