Update fann2.i

Added more robust type checking for array of arrays.