deep-merge context data attributes with link_to_document options; fixes ...

...#833