Ensure zero-length collections are sliced properly