Render objects with empty keys correctly

Fixed #15