Fix parameter type inference in case of an array type