Added support for enum and custom parameters serialization.