CFY-1056 fixed bug where intrinstic function would mess up the type validation