Support int keys when using dot notation on read.

[ fix #2740 ]