Improve recursive condition

 Now we have @.allowed-pod-classes is rw that contains all types of allowed classes for recursion.