[typer] fix forced inline detection (see #3542)