Add test for binding transformer lambda and fix related issues

This fixes issues found when specifying a producer lambda:
- options from the binding were not passed on when there were
  internal options set. Fixed by merging options.
(maint) remove TODO