lang/lfortran: upgrade to v0.31.0
Release notes at https://github.com/lfortran/lfortran/releases/tag/v0.31.0.