Fixed inner_product warnings; Added test cases; Fixed offset issue on SerialCpu