Changed ParentIdeal by sd:homogenize, sd:flatten and sd:paremeterize according to the sd:method used