Comment 3 for bug 1296303

Took me a while but I got it pass most of testsuite.

Still fails on ncgen:

=============================
Running ncgen tests
=============================
*** test1.cdl 2014-06-24 16:51:49.538376787 +0200
--- test2.cdl 2014-06-24 16:51:49.548375870 +0200
***************
*** 50,56 ****

   cross =
    4, 5, 0.000244140625,
! 7, 8, 10000000000 ;

   i = 10, 20 ;

--- 50,56 ----

   cross =
    4, 5, 0.000244140625,
! 7, 8, 2147483647 ;

   i = 10, 20 ;

*** ncgen -b test failed ***
*** ncgen -c test successful ***
=============================
ncgen tests failed: 1
=============================

But it is much better than it was with my first or Matthias' patch.