set correct type of metadata columns

columns with integers/doubles were not being promoted to double type

added test for classReduce function