Implemented constant folding for integral expressions

Typo -.-'