Fixed more inline if iterator declarations. Fixed unassigned realloc calls.