Remove unecessary precautions, and simplify index deduction in ind2sub.