T8: Added constant folding/canonicalization to function declarations