bug fix: check the type of the 'key' of the two array 'r1' and 'r2'
Error message written in proper English
Merge pull request #3111 from montefra/mlab_bug

bug fix: check the type of the 'key' of the two array 'r1' and 'r2'