Allow hash_behaviour=merge to be respected in core inventory

(For now, this means, enable it also for inventory scripts)
Merge pull request #6391 from sergevanginderachter/hashmerge_inventoryscripts

Allow hash_behaviour=merge to be respected in core inventory