E2: Fixed R:maxIndex() erroring on non-number values
Fixes #529, though this function wasn't actually what he wanted