Refactored LockFile parsing with idiomatic F# folding.

Small changes to the Package record to remove some conditional cases that now can never occur.