Added core\collection\Util class

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added newRecordTask() to data helper
Moved flattenArray() to collection Util

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added flattenArray to field input to query initiator

Signed-off-by: Tom Wright <tom@inflatablecookie.com>