Copy same behaviour to types 'boolean' and 'index'

Of course, add the corresponding tests :)