dereference dictionary entries in replaced/removed lines

when a line is replaced or removed, the use counts of dictionary entries
used in the line are decremented (and removed if no longer used)

added remove functions to code tables for codes with operands
added program model dereference() to scan line about to be removed
call dereference() when line is about to be replaced or removed
updated encode test 2 results since uses counts are now correct