Fix int value min and max
Fix int type
Fix type test
Change constructor of datum