It appears that Types defined in the Main module are included in a compiled Library. Not too much of an issue as now I know I can just delete the code in the main module before compiling, but if it's possible to change it, it would be nice. It took a while for me to realise that was causing an issue.