volume and surface integral speed up, fixes #79