Fix the union property kind if the property is union of exported variabl...

...e of module

Fixes #929