Added serializers test for types
Extended Either Serializer to support type and annotation