double gemm with alpha = 1.0 and beta = 2 would not be accepted.
Also types are handled in a very error-prone way because everything is passed around using const reference.
I made a hack to make sure that BAGEL is no slower than direct Lapack call (4f83749), but this should be a tentative fix. Without these fix, sometimes BAGEL was calling generic function!!