Implement translation of union type from ast.

BUG=433947
R=viettrungluu@chromium.org

Review URL: https://codereview.chromium.org/790093002