add parameter name check for valid XML, change arrays serialization (now
directly subclassing Serializer), improved javadoc