Added len support and fixed for-in