Fix 13111: GC.realloc returns invalid memory for large reallocation

added missing handling if the reallocation is too large for the current pool
add unittest
Merge pull request #884 from rainers/fix_13111

Fix 13111: GC.realloc returns invalid memory for large reallocation