fix bugs of Artifact#to_dict when scm_info is None