Treat integer indexed attributes as boolean attributes

Related to #2566