C nested struct passed by value example

This was causing problems in Octave as wrappers were compiled as C++.
Solution has already been committed and required regenerating the inner struct into
the global C++ namespace (which is where it is intended to be in C).
Testcase of private nested class usage causing segfault

Needs fixing for C#/Java