Added support for the constant array

I added the static variables for tests, but in this case export comes need to '__declspec(dllimport)'.
And this patch doesn't pass tests for csharp.

I a bit confused, so I reopen a pull request.
I will check how to use git, and 'force-push'.
Thank you for @tritao.