terraform: EncodeDependencies does not encode self dependence