Change jacobian_ function to allow some compile time optimization.