Generalized optimal transport and mean field control problems for reaction-diffusion systems with high-order finite element computation