Matrix differential equations and scalar polynomials satisfying higher order recursions