Allow any case in permissions for tables or custom APIs

Also fix minor bug with output in error condition using the table
operation keys and not the passed in key array.