Add singleton use to the customtype example.