fixing typedefs types inference when the typedefs are const or volatile
small fixes