Fix proxy stack warning

The proxy_stack was first defined as a struct template, then it was defined as a class template. This resulted in 100+ warnings when compiling with clang++.