Better solution to the YAML change language bug

- In 1.9, we need an extra argument to stop const_defined? and const_get
  from climbing the anscestry looking for grammars.