FIX: issue #400 (Using ANY nested in ALL produces wrong results)