Added support for int keys

* Improves `dot_lookup` function to support both dotted string lookup
  or list with keys.

Signed-off-by: Jiri Kuncar <jiri.kuncar@gmail.com>