Changed Dot and BraKet to throw on error.
Removed unused hash.h/cc and testarray.cc from utilities