resource_native_helpers: Move the resource callback to statedumps
resource_native_helpers: Modify and add logging