resource-native: Make classes not depend on udata