Optimization of TypeBase::finish() method.

Remove const identifier in finish methods of TypeBase class and its
descendants.