Added tests for Each(), While() and Until()
various cleanups related to nil list handling