replacement ivar_getTypeEncoding() written for swift classes.