A bug with elementwise pow in the 2.24 release

This bug is related to a previous discussion we had in Using std::pow inside stan::math namespace