flatten arguments for TRIMMEAN and add tests for it