Allow integer object keys when converting term to json
i.e. automatic conversion from integer to binary.