Ensure indexing supports single elements.