How to create array, dict fields?

Pls see: How to display Item Wise Tax in invoice?