Consider section name when deciding moved items

This fixes issue #20