Removed a hack in ExportFunction

retVal is now pure ExportVariable
Properly coded casting from ExportIndex to ExportArgument...

... via operator ExportArgument() in ExportIndex.
Fixed a bug in export file.
Fixed a few minor bugs. CGT works now in a basic mode...

... with "given" weighting matrices.