Fixed wrapping of virtual overloaded operators.

References #389.
Implemented a dependent namespaces test