revert Function._expressions / _replacements changes