Add some tigher resource relationships so that types are realized in the
correct order.