Materialized workflow definitions

make StoredWorkdlowDefinition.State implement Comparable?