Slightly improved (but still flawed) NmlDict implementation