MAINT: fix non-integer usage in io, interpolate and optimize.