Fix cast error for step.size on bignums

Fixes #1296