A sheriff has recommended the current system of pensioners declaring they are fit and able to drive be overhauled following an inquiry into the death of a three-year-old boy.