Fix pow for numpy arrays