Dispose reference from native side.
Avoid calling this manually. Let Reference handle it with Finalizer.
Future<bool> dispose(final Reference reference) => disposeById(reference.id);