Fix a bug in Fortran linked list template

The new added list type should be public so that other modules can use.