Fix power operator on numpy arrays

Should fix #303