Add singletonWith function to Fractional module.