Fix #1027: CommonTermsQuery serializing incorrectly