Fixes Types.by_value() classmethod
Merge branch 'events' into test