Simplify construct_integer

The rubinius-sourced construct_integer had a high flog score of 98.5
while this version is based on the Ruby implementation and has a lower
score of 36.7.