We pull luacheck HEAD, so this is a "catch up" commit to fix newly-discovered errors.
Also fixed dumping of partials by encode_vim_to_object and added code which is able to work with partials and dictionaries to test/unit/eval/helpers.lua (mostly copied from #5119, except for partials handling).