Fixed issue with incorrect pointer depth values for non-declaration variable references