XD-806: Module Options validation

Not that happy with the use of BindException to report error, but does the job.

Also, note that with this enabled, inputType and outputType would be rejected. Working the best short term solution to re-enable those (XD-1131)