Is your feature request related to a problem? Please describe.
writing the affine could currently be achieved with two methods:
img.meta['affine']=matrix and img.affine=matrix, the property setter is safer with an additional type constraint.
existing usages should be reviewed and made consistent.