type: remove wrong helper
test: add union example
type: handle enum and union in type inspection