make sure scope_chain_items has consistent types