Fixed error in sum metafunction, deleted unnecessary lines.