Fix export type PACKAGE when ALLOW is defined to extract only certains packages. Thanks to Maciej Bak for the report.