schemas: fix a bug in convert value, should convert into integer when field is array type