Autounion fixes

A few fixes to the autounion type. Please pull.