Yes, this appears to be a bug. We've had similar issues in the past versions (IQ 15) where results would vary based on whether an HG was on the columns or not. I thought we had cleared all this up some time ago.
The PK will likely not present an issue unless it is just a single column PK.
Mark