Pools an object (useful to save memory).