WIP
Fixed dynamic binding for smart pointers.