MAINT: Accounts for possible floating point rounding in slippage.

Uses numpy's allclose instead of straight comparison of floating
points, so that there is some tolerance of floating point rounding.