issue #1914, checking if a is an instance of slice.