replacement for swift's broken ivar_getTypeEncoding().