Make feature matching step follows the templatization over the descriptor internal type.