fixed bug in functions.py GetRMS

when std and median were calculated for a more than 1D array, the
result was also an array rather than a single number. fixed now ...