Try to convert objects with numeric keys to lists

This is mostly intended to provide a way to specify lists
on the command line via Java properties, like -Dfoo.0 -Dfoo.1

Fixes #69