#2 (Error while completing C++ namespace) fixed

typeref detection only done for itemVariable and itemFunction