Remove unused variables in contribution object.
Replace horrendous use of titania_types::$types[$this->contrib_type] in contrib object.