[api] Allow especially overriden attribute setters for line items

Fixes #2916