Scheduler: Fixed typo-bug in execution, dealing with unary nodes correctly, added invalid enum items as default.

Introduced OPERATION_INVALID_TYPE, OPERATION_INVALID_TYPE_FAMILY, INVALID_TYPE_FAMILY with default value zero so that
there are no silent errors in manipulating the expression tree.