CRA-746: Fixed handling of facies in wells, and errors when wells fail.