core: array item destructors
core: buffer resize impl