Added useful error message for index not found.
Missing value support and better error messages.
Made single value indexes not use 1-tuples.