fixed a problem related to wrong analysis.declare calls inside a for-in loop.