Fix #1226: Store minimal info in IR to construct hierarchy

Just to be safe... A parent can be a refined type or something weird...