add getHashCode

 - add getHashCode in template.common.h
 - move indent function into template.common.h
(trivial) change %s to %1% in template strings