Fix card type xml serialization. Closes #87.