Bug 148747 Design become invalid when I extend a masterpage from Library
The attachment contains a report file and a library file. Reproduce: 1. Deploy the library("lib"), and open the report. 2. Drag Masterpage("page1") from "lib" to report. 3. Reopen the report, it become invalid.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
* 
	 * @see org.eclipse.birt.report.model.elements.ElementVisitor#visitParameter(org.eclipse.birt.report.model.elements.Parameter)
	 */
	public void visitParameter( Parameter obj )
	{
		super.visitParameter( obj );
		property( obj, Parameter.HIDDEN_PROP );
		resourceKey( obj, Parameter.HELP_TEXT_KEY_PROP,
				Parameter.HELP_TEXT_PROP );
		property( obj, Parameter.VALIDATE_PROP );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.elements.ElementVisitor#visitReportItem(org.eclipse.birt.report.model.elements.ReportItem)
	 */
	public void visitReportItem( ReportItem obj )
	{
		super.visitReportItem( obj );
		property( obj, ReportItem.X_PROP );
		property( obj, ReportItem.Y_PROP );
		property( obj, ReportItem.HEIGHT_PROP );
		property( obj, ReportItem.WIDTH_PROP );
		property( obj, ReportItem.DATA_SET_PROP );
		property( obj, ReportItem.REF_TEMPLATE_PARAMETER_PROP );
		writeStructureList( obj, ReportItem.VISIBILITY_PROP );
		writeStructureList( obj, ReportItem.PARAM_BINDINGS_PROP );
		writeStructureList( obj, ReportItem.BOUND_DATA_COLUMNS_PROP );
		property( obj, ReportItem.BOOKMARK_PROP );
		property( obj, ReportItem.TOC_PROP );