Adds bugfix and test for util/str_to_dict, to correct the nested list parsing.