Automatically determine the size to use for a variable-lengthed array.