resolve inner types in memory