Convert ext/bcmath to HNI

Part of #1480