Detect missing db/cur arguments in 'nested' calls and raise an error.
We often forget these (eg. swh-storage!359 (closed)); this diff should prevent most mistakes in the future.
On the other hand, it's not fool-proof and is a terrible hack...
Migrated from D2846 (view on Phabricator)