Int64/Word64 constant folding (#19024)
- Replace FFI calls with primops for Word64/Int64
- Add constant folding rules
This is needed to avoid regressions in !5862 (closed) (removing fromIntegral
rules) and also in !3658 (closed) (making Int64#/word64# available on every architecture).