Add support for using weights and exclude with one-way tabulations