Fix bug where anonyous modules broken when included in anonymous class