Added removeNull flag to flattenArray

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Fixed field list flattening in query initiator

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Fixed search list in scaffold selector delegates

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