simplified code of homalgTable entry PrimaryDecomposition

in CommonHomalgTableForMAGMATools and CommonHomalgTableForSingularTools