Proposed fix for Issue #12

Proposed fix for Issue #12 "Cannot deserialize events containing interfaces". Please check.