Fix 2 bugs in PA class w.r.t. to creating pa tables

This commit fixes 2 bugs whereby the PA definite and temp chunk tables
could not be created (due to invalid SQL) when the aggregate mask is set
to a specific Aggregate.