Update to oiGet(oi, 'distance') routine

Now, this routine first check if there’s user input scene-optics
distance, if not, check if it’s in distance field in oi structure, if
not, do the original routine