Parameters: better input validation, default values

Input parameter validation is done in three steps:
  1) Check that input is in correct namespace and layout
  2) Authorization - filter allowed parameters
  3) Validate parameters - check requirements, convert data types,
     set default values
Fix input validation