fixed a bug in remove locals to clear the entry from the localised names cache
added a select operation for lists COPY ALL FROM list WHERE expression.
items in the list are referred to as list.ITEM