Currently, the code gen is only applying a few top level mappings, but for complete support it will need to handle the array and list type generation.
The logic for this is pretty much the same as a normal mapping, but it will have to leverage the index.
EX
if you have an array at index 0 with a type of int32, then given you are mapping a field [0,3] then the generated inner switch statement should be field0Name[3] = value
Should not be hard to do this for value types, however there should be a condition added in case it is a list or array of entities as those will need to use the inner mapping of those classes when assigning to them instead of just assigning the raw value.