Adds asarray to convert Iterable to java array (~Matlab vector)