Searches for core ticket tyles should be case-insensitive

15a18f9 altered the case of stored Type fields for internal ticket
types.  Ensure that searches for those values are case-insensitive by
always searching for their lowered values.
Merge branch '4.0/lc-ticket-type-searches' into 4.0-trunk