Moved all the statics from lalr_state into LalrStateFactory.
Added some types to old non-generic types.
Added generics to old-style collections.