bugfixing array grow/reserve in case of actual reallocation