Add S.{mem,remove}_reference