Replace Array with ArrayResult. Related to #816. ROTS by @atnnn