Okay! That was a quick fix, I have pushed a new version 3.6.2 you should be able to take snapshots and it ignores the reference layer. Thank you for bringing this to my attention.
Not at all, man! I’m the one who should thank you!
I was expecting to get a reply only after a few days, but you not only responded quickly, you also released a new patch with the bug fixed in just 1 day.
The script is great and you really deserve congratulations!