Add parser support for traits, namespace declarations and namespace qualified classnames