Implement debug info for static arrays.

This fixes issue #356.