FIX: Improve error message for undefined typename

Strip type modifier enclosing identifier from error message.