sorted_list and nested_set bugfixes