extended ArrayObject replacement for PHP ( Prototype )