fixed type/unit mix-up in attr() expressions