Cleaner support for type qualifiers.

Submitted by:	Pasi Parviainen