Fix MSVC warnings with 64bit json_int_t

Some lines of code were making implicit narrowing casts. I put an explicit cast in most cases, but I changed `operator long ()` to `operator json_int_t()` (which I hope is acceptable). I don't know if there should be separate `long` and `json_int_t` operators.