better nesting, added fallback, example for api

better nesting with pairToObj by smarting adding &, added a more
elegant fallback method, example documented from issue #1