On line 1505 of /includes/upload/UploadBase.php, there is a getMaxUploadSize method. It has handling for if $wgMaxUploadSize is an array. We should probably test this as an array. 
[ 'gif' => 1000, 'jpg' => 2000 ]