When dynamically compiling script with a class with a nested class defined, the collection would be null.
Example:
class test
{
 class asd
 {
 }
}