Replacing logical_to_integer interface and related routines with elemental function log2int.