FIX: issue #810 (CASE return value improperly).