Remove type discrepancy introduced in 2002: - acs_object_types.object_type has type varchar(1000), while - acs_object_types.supertype has type varchar(100) ... several more data types are involved, using acs_object_types.object_type as foreign key
- Slightly faster (around 10%) versions for the base permission query functions. In the new versions the lookup of acs__magic_object_id was moved out of the loop.