Monomial ideals of forest type