Added unittests for utils.py dedent() and list_to_string(). Adjusted lis...

...t_to_string to correctly handle no endsep.