cpsVarRef now detects array (either param(pointer) or local/global)