added type safety to ArrayLists in Lithium Parser