Take advantage of realloc(NULL, n) being defined.
Fix objc_exit() and add it to tests.