Fix AnnotatedCompositeSerializer BufferOverflowException
Add AnnotatedCompositeSerializer overflow test