Changed deprecated usage of cheshire.custom to cheshire.core

Using deprecated cheshire.custom broke interoperability with some libraries that register custom JSON encoders, for instance monger.