api_v3: consistency: always use size_t for nesting