Fix issue checking func type against literal function, fix issue #630