flatten arguments of STDEVS, add tests for it