Generalized Curvature-Matter Couplings in Modified Gravity