Implemented constant folding for integral expressions