implement support for nested gt modules

this is a first step and it doesn’t work, yet. The pending test is
failing at the moment, once this one works, this can be merged.