NEW_GEN: Handle forgotten external function declaration.
Fixed typo in XML printer