[css mode] Properly make keywords case-insensitive

Also prevent Object.prototype properties like toString from
being interpreted as keywords.

Closes #1495