clone fixed for SGMatrix type parameters