Fix BufferOverflowException on AnnotatedCompositeSerializer