AVIS: Fixed corruption bug in realloc
AVIS: Fixed corruption bug in realloc

There was a realloc bug in AVIS when serializing / deserializing
that should be fixed with this patch. Also added a getByteBuffer
implementation.

Signed-off-by: Frank Quinn <8e90d92b6718ce33106d66386b493961926d3d82@gmail.com>

cloudsmith-io/openmama,vulcanft/openmama,cloudsmith-io/openmama,vulcanft/openmama,philippreston/OpenMAMA,cloudsmith-io/openmama,fquinner/OpenMAMA,fquinner/OpenMAMA,fquinner/OpenMAMA,vulcanft/openmama,fquinner/OpenMAMA,cloudsmith-io/openmama,philippreston/OpenMAMA,dpauls/OpenMAMA,fquinner/OpenMAMA,dpauls/OpenMAMA,dpauls/OpenMAMA,cloudsmith-io/openmama,vulcanft/openmama,dpauls/OpenMAMA,dpauls/OpenMAMA,dpauls/OpenMAMA,fquinner/OpenMAMA,philippreston/OpenMAMA,vulcanft/openmama,philippreston/OpenMAMA,philippreston/OpenMAMA,vulcanft/openmama,dpauls/OpenMAMA,vulcanft/openmama,philippreston/OpenMAMA,cloudsmith-io/openmama,cloudsmith-io/openmama,fquinner/OpenMAMA,philippreston/OpenMAMA