Assert on toObject() and stringify().