fixed: function values are cached now for actual parameters, not formal