preprocess statements

to make sure elements with single objects are array of objects ex.
context.contextActivities
convert Context Activities To Array if single object

not yet tested... but compiles!
cleanup and tested

Finished in 0.844 seconds
45 tests, 261 assertions, 0 failures, 0 skipped