Make the GET and PUT APIs for arrays more consistent.