serialization stackoverflow fix

Does labeled instance have a generic type argument? maybe we can fix this later.