added functions in SGNDArray

@iglesias @hushell
Could you help me to check this patch? Thanks!
Another overloading function for clone using operator=? Because in the unit-test, arr = 0 looks a little bit weird.