Doctor granted bail over 'surgery on child's wrong eye'