Require bigdecimal before monkey-patching it

Hello,

If we try to monkey-patch the class before requiring it, then a "superclass mismatch" (`TypeError`) error is raised and the build can't run correctly.

Fixes #12708.

Have a nice day.