Write fill attribute value if it differs from parent element

If elements are nested in groups and have different fill values than
their containing group the fill value wouldn't be written correctly.