be more forgiving about x values

buildlut() would fail if rounding moved some of your x values away from
ints
Merge remote-tracking branch 'origin/7.36' into 7.36