Better checks for sequence types for `nth` and `last`