serializeArgs: don't serialize objects with a toJSON method