Output an union

Only slots and methods.

This method looks really similar to the struct one. They only have a couple of functions with different names.