Fixed nullification by setting to None

For arrays and derived type, make sure than when the variable
is set to None the fortran variable is nullified.