Fix type declarations in Environment constructor.