Cleaned up APM handling of inherited parameters so that deletion of a dependency works well now, the parameters page with the APM only shows parameters specified in the package (rather than include inherited ones), and the XML file is correclty written.