Use `delq nil' instead of `delete nil' in a few functions