this is a helping subroutine, which doubles the container
of the given dynamic array. as the container might be
initially 0-sized, a module variable minlength has been introduced, which
is used here, to at least create a container of this size.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.