Revert "Revert "AssetManager cookies should be int32_t and not void*.""

This reverts commit bb7922749bc36ce09d59a591e0f3942587ca5346.