TEZ-645. Re-use ID instances in the AM, intern vertex names etc where
possible. (sseth)