Added missing return statement.
Moved typedefs into the function where they are used.
The unary distributed evaluator now uses the unary tile operator interface to do on-the-fly evaluation.