* windows: fix list type in legacy module utils * only change the return for the list type instead of affecting it all * additional null check when using an array