Thanks for the link. It shows that this is a complicated issue, which I had already suspected.
In reality I have of course many candidate functions which should not work with Bool arguments. For now I restrict them like
julia> getty(m, index_offset::Int=0) = m[:, index_offset+2]
getty (generic function with 2 methods)
which is more restrictive than needed but easier to exclude Bool arguments.