It seems this bug is not a real one, function interp3 seems to be working as expected, and my patch is useless. Apologies for the noise.