Add basic type mapping for array types.
Fix conversion of Bignums to integer for text format.