Fix bugs to work better on a mac and for kelly's class

Switch to reading class and rule file in universal newline mode. This
should make groupeng work better on macs.

Numberize everything in rule value specifications. This prevents a
problem where we end up comparing ('1', '4') against (1, 4) and are
unable to apply a rule.