Make opal clause flatten arrays for in operators

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Refactor form traits and added dependencies

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