Fix BufferOverflowException on AnnotatedCompositeSerializer

The buffer new size calculation is incorrect.