Small fix for type restrictions with unions (fixes Hash)