Fix determine a list or tuple

Fix determine a list or tuple type not by `__getslice__` but more
directly.