[Content] Add API argument validation

Validate the method arguments aganist the signature.
Throw TYPE_MISMATCH_ERR exception is no match.
Use the new xwalk.utils module.