Array refsize = obj ref size, a user needs to provide max of all arrays