fold some pure functions
Merge branch 'gfx/more-fold-const'