Rewrote from_dict() to silently discard junk keys (when unserialize-keys is set)