More general handling of array size.