[Close #1] Export all selected AOT nodes

Do the export for all selected AOT nodes instead of doing it only for
the first one as is currently the case.