don't use ref'counted matrix in parameter example (fixing double free!)