fix builtin naturals with empty flags
fix warnings
fix tests