DynamicTab

Replace GenericTab by DynamicTab and correct the foreach.
We must declare "elem" outside the macro else, gcc say elem isn't
declare, it's strange :?