Add type declarations in stable-sort-list