.NET meta-data: added debug verification of created .NET meta-data. Minor refactoring.