Fix gemv to accept both float32 and float64 and reenable optimization to insert it in the graph.