Gel'fand-Dikii hierarchies with sources and Lax representation for restricted flows