Algebraicity of metaplectic $L$-functions