Support for Integer#{down|up}to.size

For #980.