Make type guessing case-insensitive

PHP allows array, true and false keywords to be any case, so make regex for those keywords case insensitive