replace isinstance(...,dict) checks with Mapping

Okay here is the replacement of `dict` checks, as discussed in #76. Because I still don't know the insides for ConfigObj all too well, I hope it doesn't break anything as long as the tests run through.