Add history for radios

- Radios reinstation uses the same functions as checkbox reinstation so generalise restoreCheckboxes to restoreBoolean so they support both.
Basic tests for repopulating the search form

Test the functions involved with repopulating the form when a window.popstate occurs.