Pythonic cleaning, uses a static size() in nested_container_size

Less parenthesis leads to more readable code. Still unsure about
two points:

- should it be a constexpr?
- why a class and not a function?
Fix clang compilation