[core] call setValueForUndefinedKey for unused values