fixed a crash bug

When get base class decl from a template specialization type,
the templated decl can be a typedef name decl. In such case,
invoke getBaseDeclFromType on the underlying type of the
typedef name decl.