Ensure closure are correct in DeclarationVisitor
structify caster