[PATCH] remove reflective toArray calls
calling toArray with a zero lengthed prototype causes a wasteful reflective
call to create the real array. This patch fixes this
calling toArray with a zero lengthed prototype causes a wasteful reflective
call to create the real array. This patch fixes this