After upgrading to libreoffice 5.1, certain Basic macros work strangely. Why?

The Basic macros which were working in previous versions are currently not working or working strangely after upgrading to 5.1. What may be the reason?
What are the changes in (basic macro coding & API) LO 5.1 in with respect to previous versions?

Edit: This bug is related.

you should hire a clairvoyant to answer this kind of question!

@karolus

For example, the follwing code in previous LO versions doesnt shift or move cells. Now it does

  args1(5).Name = "MoveMode"
    args1(5).Value = 4
    dispatcher.executeDispatch(document, ".uno:InsertContents", "", 0, args1())

The above is just an example. In it, the value should be changed as 6 to make it work as in previous versions. (It is tedious to go through all the code and make changes to it)

Its far more tedious to see all this useless parts of useless recorded mess!!