Fixes to allow complilation using gcc 4.7

Changes to fix problems with template compilation due to unqualified lookups of functions in the base template (adding this-> in a number of places). Also added <cstring> as a dependency of Array.cc to fix missing memcpy.