Modified moduleCodeGen

Removed global declaration on index_diff since it is not needed anymore.
Modified transpose code generator

Added  check for scalar inputs to the tranpose function call. Since the input is scalar, the output will be scalar too. So simply replace the call by the input argument in case lExpr is NULL and generate a simple assignment in case it is not.