Added pair types; modified multivariate distributions to return a value instead of storing into an existing array or matrix; implemented and tested aliases function to detect expressions whose simplest implementation creates aliases.