Making nil_chain more flexible, but causes weird error with bool_chain.