fixes webinfluenza/wijcollections#2 - using object instead of using array
(performance issues)