Fix exports. Create AsMemory instance.