Changed check in createModule to look for existing Modules instead of anything.
Added case "mixin" to supress error with mixin declarations.