Add support for local values in Fortran

Created by: williamfgc