Not sure why ```directives``` has no type info. It seems like it's a ```List<Type>``` but I'm not sure if there's any other occurrence with different type. Will look into this more. That part was not touched in this PR anyways.