Preliminary support for custom smart pointers.