Allow both partition.list and partition.part_list to work

Fixes #9461.