I've moved size of Bytea to the arguments of allocateOptionsCatalog, and I also pass expected number of catalog items there. If it is positive, it will be treated as strict number of items. If it is -1, then new items will be dynamically reparroced when needed.
-- Nikolay Shaplov, independent Perl & C/C++ developer. Available for hire.