raise a error message when the instantiation of generic function is conflicted
fix emitting IR for function variable types