added functions in SGNDArray

@iglesias @hushell
Could you help me to check this patch? Thanks!
And possibly other cases (that is, with the two I mentioned before I didn't pretend to be exhaustive).