copying over top-level foreign attributes to the post-processed Math