Add parameters to aliases; refactor _parse_*_rule()

Forgot to commit the addition of parameters to aliases.  This
also refactors the _parse_*_rule() functions to pull out some
complicated, replicated code into _set_key().