GetFuncIndexOfMemId should respect invkind and return