simplify array handling

pass as argument to Array() constructor, rather than [@a].flatten.compact
Merge pull request #32 from igalic/patch-1

simplify array handling