Make custom_keys, time_keys optional. Fixes #14, first reported in #13.