Added support for enum and custom parameters serialization.
Release 2.2.0