Update types and params subsystem.

    * update examples and docs to the new Types;