Made eventbus and related classes code gen friendly, plus OpenOptions test and some tweaks