Made array wrapper in middleware composing proccess conditional to enable middleware per function and global
Added test
0.3.3