GUAC-932: Fix dimension checking logic.