Statistics for compositional and other constrained data