Added compaction TYPE option to COMPACT HQL command
issue 1124: Fixed bug in counter logic causing resets to become increments