Pool allocator fix, scale/rotate example adoption to 0.4 api