Changed deprecated usage of cheshire.custom to cheshire.core

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