MDL-38885 form: Recursively clean parameters based on right type
MDL-38885 form: Advanced type checking on special elements
MDL-38885 form: More unit testing for missing type detection
MDL-38885 form: Unit tests for data cleaning
MDL-38885 form: Fix comments and stricter unit test