Kevin,
You can avoid this compiler error by declaring the const array as a static:
static const int myarray[][2] = {{5, 37}, {6, 36},};
I'm not sure why you would get an error when declaring a 2D array and not 1D array. I believe it has to do with the memory allocation. When you declare it as static the space is kept between function calls which may be needed for 2D arrays.
I'll do some further research, I'll post here any info that I can find.
Regards,
Juan Carlos,
N.I.