Fixed wrapping of virtual overloaded operators.

References #389.
Implemented test for operator< generation.