resource_native_helpers: Move functions to using StateDumps