Fixed bug in XMLObjectFactory.

Bug occurs when attempting to use the addParameter method in
DiscreteParameterGenerator. An example has been added to frace.xml.