Reduce getBounds() number of comparisons

Initialize limit values with first values instead of Infinity. Small
performance improvement as mentioned in #703.