Fixed userdata not being properly unwrapped when passed to direct callbacks.