Add recursive dependency calculation for views and materializations