Optimize Def.fromValue because it gets called so often.
Mark .loc fields hidden to avoid traversing them.

This makes types.getFieldNames, .eachField, and .someField ignore the
"loc" field of AST nodes, for substantial efficiency gains in many
traversal use cases.