Trace can return an array if the argument is more than 2d, but here it seems like it's never the case.  Fixed on my branch.