support typedef and identity

changed most of codes in order to print container using typedef and identity.