Params validations and coercions

WIP

Ref #22