improve performance of mutable vector implementation

The implementation now pre-allocates the counter for the inherited
attributes mapping. The improved implementation now outperforms the
IntMap implementation also in case of no sharing (and still crushes it
in case of sharing).