add missing export of gradient()
disallow subtypes of ...