Fixed declaration depth problems. All decls have a depth now.