allow KeyValueContainer objects to be passed as key-value arrays
Merge pull request #158 from Burgov/handle-keyvaluecontainer-objects

allow KeyValueContainer objects to be passed as key-value arrays