Note from THE FUTURE: this bug was in fact still there! And impressively, there was not a single test for any of the rotation stuff. Now there is a single test, which also caught another recently-introduced bug. The code will now use the number of elements in the rotation if neither dims nor matrix are supplied.
Both bugs now have fixes, which will be in PDL 2.081.