Resize: now re-entrant using new buffer api

As said in title.