Take StarSystem faction directly from Sector::System.
Fix crazy use of RefCountedPtr in StarSystemCache.