clone fixed for SGMatrix type parameters
Merge pull request #1855 from lambday/develop

clone fixed for SGMatrix type parameters