add function types to TypeCache