Support foo['bar'] and foo['bar'] = moi