added missing include, removed double-frees in Array.cpp