Add category checkbox to restriction prompt

I have tested this every which way and it works perfectly. If you allow/deny a single function, the rest of the functions in the category are still considered undetermined, except for the dangerous ones if you don't have Restrict dangerous ticked.

There is a strange bug that has taken me ages to narrow down concerning the displaying of functions with no usage data, but which don't require an app restart.