Improved Object.{to/from}_dict (to accept a "serialize-keys" option)