port ApngConvertMaxvid to work in ARC and non-ARC modes
fixup bridge cast logic in AVAnimatorLayer
more ARC porting via use of __bridge casts