Rename getMaxLength to getByteSize

Rename getMaxLength to getByteSize to prepare for adding in the actual getMaxLength, which would be the logical length of the column instead of what it is being used now, which is the maximum byte size of the column. Also fix an infinite loop in metaDataEndpointImpl.