Allow any chunk size in array upload methods. Default to chunks of 1000

Closes #67
Consolidate duplicated function