(G)Numpy porting in progress

There's a weird bug in np.dot() that threw me off course for a couple
of days.