flatten arguments of STDEVP, add tests for it