Fix bug adding groups with dashes

I encountered what appeared to be a bug where groups with dashes could not be added as the class promise canonifies the class name name, whereas the ifvarclass if the insert_line promise does not appear to canonify the parameter, causing a mismatch.  The following change resolves the bug. 

Alternatively, perhaps ifvarclass should canonify the input automatically?