Added new function getFuncTypeIndex.