Refactored element class hierarchy. Added converters for lengths (with "auto" for null) and colors (with "inherit" for null).