Implement `equals` for record and sequence type classes
Implement deserialization of (some) types from json