sandbox: add old constexpr rational code