[DDMD] entity.c: wrap array of structs elements

Same issue as pull #1993