Fix visiting of declaration blocks