Remove incorrect assertion on returned types

And hide redundant CLIEvent members
Only generate missing event members
Merge pull request #412 from dungpa/fix-wrong-assertions

Fix wrong assertions