Use int64 instead of int

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
Merge pull request #5753 from creack/fix-beam-32bit

[beam] Use direct iota instead of binary shift