Fixed ArrayPool implementation