On dyadic integrals and some other integrals associated with local systems