I generalized several casts from KnuthElement to ListElement. This removes a number of ClassCastExceptions in some files with inline block content.