eagle polygon export/import bugfixes + unit test cases