Added custom Array implementation.

Some iterative refactoring of the code base related to Archive and Streams usage of std::vector to use custom implementation instead.