Get the data section of the activity config working

Still needs unit tests. Also added a couple more types of dynamic values:
array
array-element