Bug fix: using the waiting method with timeunits works correct. The
other with states does not accept null varargs.