Properly bind nested pattern bindings when there's more than one

Fixes #15488.