Fixing recursive imports for real this time.

* Cleaning up simple_example to work.
* Fixing cpp wrapper for edge case of root plugins.