Some fixes to Array.h and HashMap.h
Several fixes on the HashMap class, as well as a small bug fix in the replace class of String and some small changes in the Array class for convenience.