fixed typetranslate call expr, added func/proc defined check