arePortTypesCompatible: speed up using static map