Remove duplication in creating attributes

This adds create_attr.
Remove commented-out code
Refactor get_class_specification

Now it uses get_constant as they have identical content.
Add Context#add to reduce duplication

This removes nearly identical methods in the parser and allows
introduction of using Context#add for adding other code objects to a
context.