Ported to numpy 1.7

  * Should still work for lower versions
  * Tested on mac with numpy == 1.7
    All tests without external software pass.
  * Testing on linux with numpy == 1.6
    Some vff and dftcrytsal-bandstructures tests fail