Updates to generalized aliases

Adds alias generalization functionality and resolves huyng/bashmarks#32.