Add getter of topology object to evaluator C-API

Useful for cases when some parts of the pipeline needs to know the
topology object. Simply helps saving memory so topology from the
evaluatgor can be re-used for stuff like HbrMesh creation.
Code cleanup: no need to use struct keyword in C++ code

It's only required for anonymous structures in C.

Also made a bit of whitespace cleanup.