fix for array arguments

when args is an array we need to wrap array in outer array as we do a function apply on the handler.