Old numpy compat

On checking, it turned out we were using some very small features of later numpies than 1.2 - our stated dependency.

These very small fixes make it possible to run with numpy 1.2.  Although 1.2 is now very old, the fixes are so small that I think they are worth putting in.