Cannot add array entry in page template

I’ve added an array field to a page blueprint, every time I try to add a key/value pair I get a ‘Validation failed’ error.

I also cannot add additional fields to the array when editing the page, before clicking save.

Turns out the problem was that I had removed the jQuery asset collection in system.yaml, causing the admin panel to simply fail loading jQuery.