Change argument order for backward compatibility.
Implement Repository.upload via Artifact.upload.
Move to_matrix_properties method to base class.