Fixed node generation to get attributes for the inner types when the passed in type is an enumerable