fix Issue 9244 - union containing pointers not allowed

fix http://d.puremagic.com/issues/show_bug.cgi?id=9244