Added support for empty loop values. Incl. test and doc