Fixes, range issues

Finally resolved list range issues for lists and dictionaries with a 0 length