Fix problems with complex input
Add missing support to print non-POD types