Fix minor bugs in PaginatedChoiceState, facility listing and facility selection.
Add test for pagination of facility_type.