types array was referencing itself in its own declaration. Fixed 'file' type checking and bad 'link' type checking