Beta metrics hdf5

We are getting a tests failure in Jenkins that I have not been able to reproduce in my system or in @teravest's system. I've added an explicit cast to array to see if this ameliorates the problem.