ADT.OrderedMapping: Fix duplicate entries, optimise and add substract.
Documentation fixes. No need to push 0 on void functions.
Major redesign of the refdoc. Also removed some obsolete stuff.
New class ADT.OrderedMapping. This class emulates a mapping but will keep the order of the indices as they were added.