Also add missing using statement.
Also rename the constructor parameter to has_entry and pass its value to CreateNativeObject.