BUG-1276: fixed generated union constructor