keep track of rule body dependency

Signed-off-by: Andrey Rybalchenko <rybal@microsoft.com>