CFY-1311 fixed wrong node template matching in functions validation