Fixed issue with rotating blocks

The functions to rotate blocks now rotate the dictionary assignments in
the correct direction.