btas::rank is now constexpr when possible