Added direct int[] support.

Ugly but working :-)