parse_bool() and parse_list() added plus a few bugfixes and new testcases