Make function arguments positional or keyword

Looks like a https://github.com/JuliaLang/Compat.jl/pull/586 — it didn’t handle the case of typed keyword arguments.