Made containsBooleans() method quote-aware.