It would be good get_post_mime_types() (wp-includes/post.php) included (and filtered) each of them, including the file extensions. Then wp_ext2type() could just use this function to get them, and we could use it too!