Allow java array of primitives to be passed as param

refs #224