buf_comparison: clear array <-> size links better on modification