Moving a few more routines from matrices/ into src/ and adding missing explicit instantiation of MakeUniform.