Make `polestar` weakref.

Plus some minor changes