#22 Made Attribute and TypedValue immutable and cleaned them up a bit.