add a test for attrib->nexttype.
fix gcc build.