@eht16 I've added the second commit to this pull request.
I've tested Macro and Numbered Plugins- after the changes they began to work for me (before the changes they crashed Geany).
I haven't tested the Lua plugin, but due to a small change there, I believe, it should work.