make objmaps/relmaps more dict like and add helper methods to convert to...

... and from dicts