Fix Response::eloquent and Response::json integer serialization

Fixes #1944