HHVM Intval Fixes

I just noticed that hhvm wasn't doing this correctly when the 4.2 tests failed. It seems this issue is in 4.1 too.