Implement debug info for static arrays.

This fixes issue #356.

Enums, associative arrays and possible other types are still missing.