AC realloc reduction v0.2

Replaces https://github.com/inliniac/suricata/pull/1023