Add a cache variable to trigger logging machinery.
rename file.
Add macros for shared pointer cast.
Remove definition of t##ShPtr in pointer.hh
homogeneize coding style.

  - TypeWkPtr -> TypeWkPtr_t.