for #642, error when param types cannot be determined for function ref