Allow use of the required option without default values

Also fixed an error that occurred when throwing an "Unsupported type" error.