defs and bbox fixes

small fixes that were necessary for more extensive svg transformations