The code for IntToStr on a Int64 doesn't actually work, fix it. Based on existing Int64ToStr implementation which does work.