Fixed bad mangling.
Fixed broken outputed D code.
Reverted broken code gen.
Commented broken and unnecessary functions.
Added hand-written code for templates not implemented by SWIG.
Updated test code to properly display orientation.