Fix declaration visitor to dive into blocks.