Added prototype implementation of custom COM smart pointer.
Merged 'master' changes.