Also handle dimension of non-template functions.
Also handle dimension of non-template functions.

The difficulty comes from the fact that even for a function where all input
types and the return type is given, the dimension of the return type and
correctness of the function will vary with the dimensions of input arguments.

The solution chosen here is to treat all user-defined functions as templates.

babrodtk/equelle,sintefmath/equelle,atgeirr/equelle,atgeirr/equelle,atgeirr/equelle,atgeirr/equelle,atgeirr/equelle,babrodtk/equelle,sintefmath/equelle,babrodtk/equelle,atgeirr/equelle,sintefmath/equelle,sintefmath/equelle,atgeirr/equelle,sintefmath/equelle,sintefmath/equelle,babrodtk/equelle,sintefmath/equelle,babrodtk/equelle,atgeirr/equelle,babrodtk/equelle,sintefmath/equelle,babrodtk/equelle